package assets;

import org.anddev.andengine.audio.sound.Sound;
import org.anddev.andengine.audio.sound.SoundFactory;
import org.anddev.andengine.audio.sound.SoundManager;

import android.content.Context;

import java.io.IOException;

public class Som {
	
	public Sound som;
	
	public Som(String arquivoDoSom, Context contexto, SoundManager sm) {
	    SoundFactory.setAssetBasePath("mfx/");
	    try {
	    	som = SoundFactory.createSoundFromAsset(sm, contexto, arquivoDoSom);
	    } catch (final IOException e) {
	    	
	    }
	}
}